from pydantic import BaseModel
from datetime import datetime


class ConfBaseModel(BaseModel):
    """返回配置基类，用于返回时间格式化 或 某些需要特殊处理的
    Args:
        BaseModel (_type_): _description_
    """


    class Config:
        json_encoders = {
            datetime: lambda v: v.strftime("%Y-%m-%d %H:%M:%S")

        }
